import request from '@/utils/request'

// 查询物流异常列表
export function listLogisticsError(query) {
  return request({
    url: '/wms/logisticsError/list',
    method: 'get',
    params: query
  })
}

// 查询物流异常详细
export function getLogisticsError(id) {
  return request({
    url: '/wms/logisticsError/' + id,
    method: 'get'
  })
}

// 新增物流异常
export function addLogisticsError(data) {
  return request({
    url: '/wms/logisticsError',
    method: 'post',
    data: data
  })
}

// 修改物流异常
export function updateLogisticsError(data) {
  return request({
    url: '/wms/logisticsError',
    method: 'put',
    data: data
  })
}

// 删除物流异常
export function delLogisticsError(id) {
  return request({
    url: '/wms/logisticsError/' + id,
    method: 'delete'
  })
}
